package service.impl;

import java.util.List;

import pojo.Order;
import service.OrderManager;
import dao.OrderDao;
import dao.factory.DaoFactory;

public class OrderManagerImpl implements OrderManager {
	
	private OrderDao orderDao;
	
	public OrderManagerImpl(){
		orderDao = DaoFactory.getOrderDaoInstance();
	}
	
	public int order(List<Order> orders){
		return orderDao.addBatch(orders);
	}

}
